#ifndef _CURRENCY_H
#define _CURRENCY_H

#include <stdint.h>

#include "queue.h"
#include "object.h"

struct currency_t {
	struct object_t obj;
	double rate;
	double rate2; /* first is EUR->CNY; second is GBP->EUR, if needed. */
};


extern int uh_add_currency(struct mg_connection *conn,
		const struct mg_request_info *ri,
		const char *uri,
		int mobile);

extern int uh_query_currency(struct mg_connection *conn,
		const struct mg_request_info *ri,
		const char *uri,
		int mobile);

extern int uh_del_currency(struct mg_connection *conn,
		const struct mg_request_info *ri,
		const char *uri,
		int mobile);


#endif
